package pl.edu.agh.anomalyids.lerad.listener;

import java.util.ArrayList;
import java.util.List;

import pl.edu.agh.anomalyids.network.Packet;
import pl.edu.agh.anomalyids.network.listener.PacketListener;

public class PacketCollector implements PacketListener {
	
	private List<Packet> packets = new ArrayList<Packet>();
	
	@Override
	public void onPacketArrived(Packet packet) {
		packets.add(packet);
	}
	
	public List<Packet> getPackets() {
		return packets;
	}
}
